package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.domain.Building;
import com.ruoyi.domain.Community;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 核酸任务对象 t_task
 *
 * @author ruoyi
 * @date 2023-04-10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Task {

    /**
     *
     */
    private Long id;

    /**
     * 任务名
     */
    @Excel(name = "任务名")
    private String taskName;

    /**
     * 小区
     */
    @Excel(name = "小区")
    private Long communityId;

    /**
     * 楼栋
     */
    @Excel(name = "楼栋")
    private Long buildingId;

    /**
     * 任务状态
     */
    @Excel(name = "任务状态")
    private Long state;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /**
     * 检测位置
     */
    @Excel(name = "检测位置")
    private String address;

    /**
     * 任务人数
     */
    @Excel(name = "任务人数")
    private Long numberTasks;

    private Long accomplishTasks;

    private Community community;

    private Building building;
}
